<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Document</title>
  <style>
    #my{
      text-align: center;
      height: 400px;
      line-height: 50px;
    }
  </style>
</head>
<body>
    
    <div id="my">
      <h3>bind函数的绑定方法</h3>
      <div id="mydiv" style="cursor:pointer;">点击一下显示名人名言</div>
      <input id="myinput" type="button" value="点击就不可以用了">
    </div>
</body>
<script src="../jQuery/jquery-3.7.1.js"></script>
<script>
  var mydiv=$('#mydiv')
  var myinput=$('#myinput')
  mydiv.bind('click',function(){
    mydiv.html("世上无难事,只怕有心人")
  })
  myinput.bind('click',function(){
    myinput.attr('disabled',true)
  })
</script>

</html>